package com.design_patterns.proxy.spring.auto;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

/**
 * @author: 李德才
 * @description:
 * @create: 2020-08-30 20:31
 **/

@Aspect
public class BrushInterceptor {

    @Before("execution (void com.design_patterns.proxy.spring.auto.Brush.drawing())")
    public void before() {
        System.err.println("before ……");
    }

    @After("execution (void com.design_patterns.proxy.spring.auto.Brush.drawing())")
    public void after() {
        System.err.println("after ……");
    }
}
